package com.xy.factorymethod.order;

import com.xy.factorymethod.pizza.*;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/10 11:02
 * @description
 */
public class BJOrderPizzaFactory extends OrderPizzaFactoryMethod {
    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza = null;
        switch (orderType) {
            case "1" : {
                pizza = new BJGreekPizza();
                break;
            }
            case "2" : {
                pizza = new BJCheesePizza();
                break;
            }
        }
        return pizza;
    }
}
